<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="../js/vue.js"></script>
		<div id="app">

			<cpn v-bind:cmessage="message" :cmessages='messages'></cpn>
		</div>
		<template id="cpn">
			<div>{{cmessage}}
				{{cmessages}}
			</div>
		</template>
		<script>
			const cpn = {
				template: "#cpn",
				props: ['cmessage', 'cmessages'],
				data() {
					return {

					}
				},
				methods: {

				}
			}

			var app = new Vue({
				el: '#app',
				data: {
					message: "你好啊",
					messages: ['蜡笔小新', '喜洋洋', '灰太狼', '红太狼']

				},
				methods: {

				},
				components: {
					cpn
				}

			})
		</script>
	</body>
</html>
